package com.serviceImpl;

import com.javabean.SysLog;
import com.mapper.SysLogMapper;
import com.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.net.URI;
import java.net.URL;
import java.util.List;
@Service
public class SysLogServiceImpl implements SysLogService {
    @Autowired
    SysLogMapper sysLogMapper;
    @Override
    public List<SysLog> findAll() {
        return sysLogMapper.selectAll();
    }

    @Override
    public List<SysLog> findAll(String username, String url) {
        return sysLogMapper.selectLikeUsernameAndUrl(username, url);
    }

    @Override
    public void add(SysLog syslog) {
        sysLogMapper.insertSysLog(syslog);
    }
}
